﻿#region

using System;
using System.Web.UI;
using System.Web.UI.WebControls;

#endregion

namespace FastTrackCabService.AdminPanel
{
    public partial class VehicleFullView : Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.QueryString["regNo"] == null)
            {
                Response.Redirect("Vehicles.aspx");
            }
        }

        protected void odsVehicle_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
        {
            e.InputParameters["RegistrationNo"] = Request.QueryString["regNo"];
        }

        protected void DetailsView1_ModeChanging(object sender, DetailsViewModeEventArgs e)
        {
            Response.Redirect("EditVehicleForm.aspx?regNo=" + Request.QueryString["regNo"]);
        }
    }
}